package com.supermarket.api.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 测试相关接口
 * @author li
 */
@Slf4j
@Controller
@RequestMapping("/test")
public class TestController  {

    @ResponseBody
    @GetMapping("/{name}")
    public String findAdBySite(@PathVariable("name") String name){
        return "Hello World !"+"\n你好："+name;
    }

}
